package com.meiyue.library.custom.repository;

import com.meiyue.bean.base.PageModel;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.NoRepositoryBean;

import java.io.Serializable;
import java.util.List;

/**
 * CustomRepositoryDemo
 * library
 * Created by Chris Chen
 * 2017/9/15
 * Explain:自定义的Repository接口
 */
@NoRepositoryBean
public interface BaseRepository<T, ID extends Serializable> extends JpaRepository<T, ID> {
    PageModel<T> getPage(Pageable pageable);//获取自定义分页
}
